package data.platform.common.service.command;

import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import reactor.util.function.Tuple2;

import java.util.Optional;

public interface KeyValueRepository<K, V> {

    Mono<V> get(K key);

    void put(K key, V value);

    void delete(K key);

    Flux<Tuple2<K,V>> getByPrefixKey(String prefixKey);
}
